package com.aaa.custom.service.orderService;

import com.aaa.entity.cart_order.zxh.Order;
import com.aaa.entity.cart_order.zxh.Order_Item;


import java.util.List;
import java.util.Map;

/**
 * fileName:OrderService
 * description:
 * author:zxh
 * createTime:2020/1/13 8:39
 * version:1.0.0
 */

public interface OrderService {
    /**
     * 查询订单商品中间表
     * @return
     */
    List<Order> byMember_idAndShop_idGetShop(Long id,Long member_id, Long shop_id,String order_sn);

    /**
     * 查询订单表
     * @param order_sn
     * @return
     */
    List<Order_Item> byOrder_snGetOrder(String order_sn);

    /**
     * 删除订单（将订单状态改为删除）||修改订单状态
     * delete_status订单是否删除，confirm_status确认收货状态，status订单状态
     * @param id
     * @param delete_status
     * @param confirm_status
     * @param status
     * @return
     */
    int delectOrderByID( Long id, Integer delete_status, Integer confirm_status, Integer status );

    /**
     * 添加订单
     * @param orderProducts
     * @return
     */
    int add_oms_order_item(Map orderProducts);
}
